package com.zzy.command;
import java.io.IOException;
public class CommandController {
	// 单例模式
    private static CommandController commandController = null;
    private CommandController() {
    }
    public static CommandController getCommandController() {
        if (commandController == null) {
            commandController = new CommandController();
        }
        return commandController;
    }
    public void Action(Command command, String cardnode) {
        if (cardnode.length() == 0) {
            command.action();
        } else {
            try {
                command.action1(cardnode);
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }
    }

}
